
package com.one.odf.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for competitorGPSDataType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="competitorGPSDataType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="ExtendedGPSData" type="{}extendedDataType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="ID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="DistanceToFinish" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
 *       &lt;attribute name="DistanceFromStart" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
 *       &lt;attribute name="DistanceToLeader" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
 *       &lt;attribute name="Speed" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "competitorGPSDataType", propOrder = {
    "extendedGPSData"
})
public class CompetitorGPSDataType {

    @XmlElement(name = "ExtendedGPSData")
    protected List<ExtendedDataType> extendedGPSData;
    @XmlAttribute(name = "ID", required = true)
    protected String id;
    @XmlAttribute(name = "DistanceToFinish", required = true)
    protected int distanceToFinish;
    @XmlAttribute(name = "DistanceFromStart", required = true)
    protected int distanceFromStart;
    @XmlAttribute(name = "DistanceToLeader", required = true)
    protected int distanceToLeader;
    @XmlAttribute(name = "Speed", required = true)
    protected BigDecimal speed;

    /**
     * Gets the value of the extendedGPSData property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the extendedGPSData property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getExtendedGPSData().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ExtendedDataType }
     * 
     * 
     */
    public List<ExtendedDataType> getExtendedGPSData() {
        if (extendedGPSData == null) {
            extendedGPSData = new ArrayList<ExtendedDataType>();
        }
        return this.extendedGPSData;
    }

    /**
     * Gets the value of the id property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getID() {
        return id;
    }

    /**
     * Sets the value of the id property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setID(String value) {
        this.id = value;
    }

    /**
     * Gets the value of the distanceToFinish property.
     * 
     */
    public int getDistanceToFinish() {
        return distanceToFinish;
    }

    /**
     * Sets the value of the distanceToFinish property.
     * 
     */
    public void setDistanceToFinish(int value) {
        this.distanceToFinish = value;
    }

    /**
     * Gets the value of the distanceFromStart property.
     * 
     */
    public int getDistanceFromStart() {
        return distanceFromStart;
    }

    /**
     * Sets the value of the distanceFromStart property.
     * 
     */
    public void setDistanceFromStart(int value) {
        this.distanceFromStart = value;
    }

    /**
     * Gets the value of the distanceToLeader property.
     * 
     */
    public int getDistanceToLeader() {
        return distanceToLeader;
    }

    /**
     * Sets the value of the distanceToLeader property.
     * 
     */
    public void setDistanceToLeader(int value) {
        this.distanceToLeader = value;
    }

    /**
     * Gets the value of the speed property.
     * 
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *     
     */
    public BigDecimal getSpeed() {
        return speed;
    }

    /**
     * Sets the value of the speed property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *     
     */
    public void setSpeed(BigDecimal value) {
        this.speed = value;
    }

}
